﻿using NMock2;
using Pagination;
using Pagination.Tokenizer;

namespace Tests.Expectations.Pagination
{
    public static class TokenizerExpectations
    {
          public static void ExpectToken(this ITokenizer mock, params object [] tokens)
          {
              foreach (var token in tokens)
                  Expect.Once.On(mock).Method("Next").WithNoArguments().Will(Return.Value(token));
          }
    }
}
